#######

# User Migration
# email: Holds User's email.
# hashed_password: Holds the User's password after it has been hashed.
# hash_seed: Holds the random string that is used to hash the User's password
# active: Used to tell the system if User has gone through email validation. 
#         Very possible this may change at some point if I find a better way to 
#         do this.

#######

class CreateUsers < ActiveRecord::Migration
  def self.up
    create_table :users do |t|
      t.column "email", :string
      t.column "hashed_password", :string, :limit => 40
      t.column "hash_seed", :string, :limit => 10
      t.column "active", :boolean, :default => 0
      
      t.column "created_at", :date
    end
  end

  def self.down
    drop_table :users
  end
end
